package com.itheima2;

import java.time.LocalDateTime;
import java.util.Date;

public class Util {
    public static void main(String[] args) {
        String str ="2021-01-01 00:00:00";
        LocalDateTime date = LocalDateTime.now();
        LocalDateTime date1 =LocalDateTime.of(2020,6,13,12,26,34);
        LocalDateTime localDateTime = MyLocalDateTimeUtil1.localToStringDateTime(str, "yyyy-MM-dd HH:mm:ss");
        System.out.println(localDateTime);
        long time = MyLocalDateTimeUtil1.millisecondBetween(date1, date);
        System.out.println(time);

    }
}
